#ifndef _LOCALSTOREMANAGER_H_
#define _LOCALSTOREMANAGER_H_

#include <shared_data.h>
#include <Scheduler.h>
#include <ProcessComposition.h>

class LocalStoreManager{
public:
	LocalStoreManager(int spe_id);
	~LocalStoreManager(){}
	ProcessComposition* Get();
	void Put(ProcessComposition &p, int state);
	int GetCount(){ return count;}
	int LiveProcesses(){
		return scheduler->LiveProcesses();
	}
private:
	ProcessComposition *spe_slots[MAX_SPU_SLOTS];
	int slot_idx;
	int count;
	int spe_id;
	Scheduler *scheduler;
};

#endif
